<template>
    <div class="my-load" v-show="show">
        <div>{{msg}}</div>
    </div>
</template>

<script>
export default {
  name: 'my-load',
  props: {
    show: Boolean,
    msg: String
  }
}
</script>

<style scoped lang="scss">
.my-load {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    div {
        background-color: rgba($color: #000000, $alpha: 0.8);
        color: #fff;
        padding: 20px;

    }

}
</style>